import request from "@/utils/request"

export const getCompanyListApi = (params = {}) => {
    return request.get('/company/', {
        params: {
            limit: 500,
            offset: 0,
            ...params,
        }
    })
}

export const createCompanyApi = (data) => {
    return request.post('/company/', data)
}

export const updateCompanyApi = (data) => {
    console.log(data);
    return request.patch(`/company/`, data)
}

export const deleteCompanyApi = (data) => {
    return request.delete(`/company/`, {
        data
    })
}